package jwlee.testjunit;

public class AssertTest {
	public void methodA(int i) {
		// assert i >= 0 : methodB();
		assert i >= 0 : methodB2();
		System.out.println(i);
	}

	public void methodB() {
		System.out.println("The value must not be negative");
	}

	public int methodB2() {
		System.out.println("The value must not be negative");
		return 0;
	}

	public static void main(String args[]) {
		AssertTest test = new AssertTest();
		test.methodA(-10);
	}

}
